package bhbt.controller.admin.info;


import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import bhbt.controller.core.BaseController;
import bhbt.model.Admin;
import bhbt.model.Member;
import bhbt.model.Message;
import bhbt.model.MessageReply;
import bhbt.service.MessageReplyService;
import bhbt.service.MessageService;
import bhbt.taglib.pagetag.Pagination;
import bhbt.utils.ContextUtil;
import bhbt.utils.CryptUtil;
import bhbt.utils.FileUtils;
import bhbt.utils.MapUtil;
import bhbt.utils.SysConst;
import bhbt.utils.Tools;






/**
 * Created by Administrator on 2016/3/25.
 */
@Controller

public class MessageListController extends BaseController {
    @Resource
    private MessageService messageService;
   
    @RequestMapping("admin/info/messageList.shtml")
    public String list(HttpServletRequest request) throws Exception{
        HashMap formMap = getParameterMap(request);
       
       
        formMap.put("pagination.orderBy"," a.id desc");  //排列
        Pagination page = messageService.queryForPageList("messageForPage",formMap);
        request.setAttribute(Pagination.pageBeanName, page);
        return "admin/info/messageList";
    }
   
}
